package com.laowang.project.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import com.laowang.project.system.domain.MyCyhActivitySign;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 活动报名对象 my_cyh_activity_sign
 *
 * @author laowang
 * @date 2023-05-22
 */
@NoArgsConstructor
@Data
public class MyCyhActivitySignVo  implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 联系人姓名
     */
    @Excel(name = "联系人姓名")
    @ApiModelProperty(value = "联系人姓名", required = false)
    private String name;

    /**
     * 用户选择
     */
    @Excel(name = "联系人id")
    @ApiModelProperty(value = "用户选择", required = false)
    private Integer userId;

    /**
     * 参与人数
     */
    @Excel(name = "参与人数")
    @ApiModelProperty(value = "参与人数", required = false)
    private Integer nums;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", required = false)
    private Date ctime;

    /**
     * 排序
     */
    //@Excel(name = "排序")
    @ApiModelProperty(value = "排序", required = false)
    private Integer weight;



    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间", required = false)
    private Date utime;




    private Integer ticketId;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    @ApiModelProperty(value = "手机号码", required = false)
    private String mobile;

    /**
     * 性别
     */
    //@Excel(name = "性别")
    @ApiModelProperty(value = "性别", required = false)
    private Integer sex;

    /**
     * 报名留言
     */
    //@Excel(name = "报名留言")
    @ApiModelProperty(value = "报名留言", required = false)
    private String message;

    private String idCard;//身份证



    /**
     * 参与活动
     */
    @Excel(name = "活动id")
    @ApiModelProperty(value = "活动id", required = false)
    private Integer activityId;

    //@Excel(name = "活动名称")
    @Transient
    private String activityName;

    /**
     * 是否支付:0=未支付，1=已支付
     */
    @Excel(name = "是否支付" ,readConverterExp ="1=已支付,0=未支付" )
    @ApiModelProperty(value = "是否支付:0=未支付，1=已支付", required = false)
    private Integer isPay;

    @Excel(name = "分享人id")
    @ApiModelProperty(value = "分享人", required = false)
    private Integer shareId;

    @Excel(name = "金额元")
    @ApiModelProperty(value = "金额", required = false)
    private BigDecimal amount;

    /**
     * $column.columnComment
     */
    //@Excel(name = "是否支付:0=未支付，1=已支付")
    @ApiModelProperty(value = "是否支付:0=未支付，1=已支付", required = false)
    private String paymentId;

    /**
     * 是否审核
     */
    @Excel(name = "是否核销",readConverterExp ="0=未核销,1=已核销")
    @ApiModelProperty(value = "是否核销", required = false)
    private Integer auditStatus;

    private String rules;



    /**
     * 支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //@Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "支付时间", required = false)
    private Date paytime;



    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "核销时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "核销时间", required = false)
    private Date checkTime;

    private Integer inSurance;

    private Integer isDrive;

    @Transient
    private List<Integer> listIds;// 活动的ids
}
